cmake_minimum_required(VERSION 3.5)
project(udp_attack)

set(CMAKE_CXX_STANDARD 11)
include_directories(cmdline)

add_executable(udp_attack main.cpp)
if(UNIX AND NOT APPLE)
    add_executable(udp_random ramdon.cpp)
    target_link_libraries(udp_random pthread)
    install(TARGETS udp_random RUNTIME DESTINATION /usr/local/bin)
endif()
target_link_libraries(udp_attack pthread)
install(TARGETS udp_attack RUNTIME DESTINATION /usr/local/bin)